package ooday05;

public class StaticDemo {
    public static void main(String[] args) {
        StaticVar o1=new StaticVar();
        o1.show();
        StaticVar o2=new StaticVar();
        o2.show();
        StaticVar o3=new StaticVar();
        o3.show();
        System.out.println(StaticVar.b);//静态变量常常通过类名点来访问

        //静态块的演示
        StaticBlock a=new StaticBlock();
        StaticBlock b=new StaticBlock();
        StaticBlock c=new StaticBlock();

        StatucMethod.show1();//静态方法常常通过类名点来访问

        StatucMethod a1=new StatucMethod();
        a1.say();
        StatucMethod.plus(1,5);
    }
}
